Fix travis build
authorJustin Burkett <justin@burkett.cc>
Wed, 13 Dec 2017 18:02:51 +0000 (13:02 -0500)
committerJustin Burkett <justin@burkett.cc>
Wed, 13 Dec 2017 18:02:51 +0000 (13:02 -0500)
Add support for 25.3. Remove for 24.3

.travis.yml
Makefile

index b22aa137742ebeae094410d3b8ac914dcce33345..9da955d6225042e6841390497c9f876ed14684d4 100644 (file)
@@ -1,29 +1,22 @@
-language: generic
-sudo: false
-
-branches:
-  only:
-    - master
-
-before_install:
-  - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
-  - evm install $EVM_EMACS --use --skip
-  - cask
-
+# language: emacs-lisp
 env:
-  - EVM_EMACS=emacs-24.3-travis
   - EVM_EMACS=emacs-24.4-travis
   - EVM_EMACS=emacs-24.5-travis
   - EVM_EMACS=emacs-25.1-travis
   - EVM_EMACS=emacs-25.2-travis
+  - EVM_EMACS=emacs-25.3-travis
   - EVM_EMACS=emacs-git-snapshot-travis
 
+before_install:
+  - git clone https://github.com/rejeep/evm.git $HOME/.evm
+  - export PATH=$HOME/.evm/bin:$PATH
+  - evm config path /tmp
+  - evm install $EVM_EMACS --use --skip
+
 matrix:
   fast_finish: true
   allow_failures:
-    env:
-      - EVM_EMACS=emacs-24.3-travis
-      - EVM_EMACS=emacs-git-snapshot-travis
+    - env: EVM_EMACS=emacs-git-snapshot-travis
 
 script:
   - emacs --version
index facb1f80b4b121c2275c71f04031bfa9e91493cf..a60edf68299d8b574070be7f2f9f24df4e99de72 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,15 @@
 .PHONY : test
 
-EMACS ?= emacs
+emacs ?= emacs
 CASK ?= cask
 
 LOADPATH = -L .
 
 ELPA_DIR = \
-       .cask/$(shell $(EMACS) -Q --batch --eval '(princ emacs-version)')/elpa
+       .cask/$(shell $(emacs) -Q --batch --eval '(princ emacs-version)')/elpa
 
 test: elpa
-       $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) \
+       $(CASK) exec $(emacs) -Q -batch $(LOADPATH) \
                -l which-key-tests.el -f ert-run-tests-batch-and-exit
 
 elpa: $(ELPA_DIR)